import {reqGetSnapshotInfo} from "@/api";

const state = {
    SnapshotInfo:{}
};
const actions = {
    async GetSnapshotInfo({commit},snapshotId){
        let resultSnapshotInfo = await reqGetSnapshotInfo(snapshotId)
        commit('GetSnapshotInfo',resultSnapshotInfo)
    },
    //更新状态
    UpdateSnotInfo({commit},status){
        commit('UpdateSnotInfo',status)
    }
};
const mutations = {
    GetSnapshotInfo(state,item){
        state.SnapshotInfo = item
    },
    UpdateSnotInfo(state,status){
        state.SnapshotInfo.status = status
    }
};
const getters = {};
export default {
    state,
    mutations,
    actions,
    getters
}
